Loading...
 

CX_PERCENT - percentage

CX_PERCENT

Class hierarchy
Description:

This class is used to display percentage figures.

Code example:

Var(percent1, percent2)
CreateTransObject(CX_PERCENT) -> percent1
25.5% -> percent1

55.4% -> percent2
percent1 percent2 +=     // Ergebnis : 80,9%

Display on screen

InstantView® Instruction: Percent

In connection with this interface object and certain InstantView®instructions, the flags belonging to the object play an important role, as they can be used to modify the representation of the object.

Operators
Operator Brief description
+, -, *, / Arithmetic
+=, -=, *=, /= Arithmetic
>, <, = Compare
List of methods (MDI)
Function MA* Parameters Return Brief description
RoundAutomatically OBJECT Round the number with current precision as number of decimal places
SetPercent
231532
STRING, INTEGER Import string as a percentage
Add CX_AMOUNT CX_AMOUNT Operator + as function
AddAssign CX_AMOUNT Operator += as function
AdjustPrecision Adjusting the accuracy, no object back
Amount OBJECT Return of the object value
AmountWeak CX_AMOUNT
Car format INTEGER, INTEGER CX_AMOUNT Returns a formatted object according to the given number of digits before and after the decimal point (only with CX_VALUE, otherwise the object itself).
ChangeSign Reverse sign
DivAssign CX_AMOUNT Operator /= as function
Divide CX_AMOUNT CX_AMOUNT Operator / as function
GetNumeric OBJECT Return: Object as a real number
InWords (INTEGER, INTEGER) MLSTRING Convert number into number words
IsNegatives INTEGER Test negative sign
IsZero INTEGER Test number to zero
MulAssign CX_AMOUNT Operator *= as function
Multiply CX_AMOUNT CX_AMOUNT Operator * as function
Precision * Changing the accuracy
PrecisionAdjusted OBJECT like AdjustPrecision, but with return of the object
Reciprocal OBJECT Calculation of reciprocal values
Round (INTEGER) Rounding the number
round (OBJECT) OBJECT like Round, but with return of the object
Rounded (INTEGER)
SetNumeric STRING, INTEGER Import string as number
SetPrecision (INTEGER) Set number of decimal places
SetZero Set number to zero
string INTEGER CX_STRING Returns the string representation of the object
SubAssign CX_AMOUNT Operator -= as function
Subtract CX_AMOUNT CX_AMOUNT Operator - as a function
Truncate (INTEGER) Truncation of decimal places

* MA = Member Access Function

Data directory (DDI)
Data field Type Reference class I* Brief description
this CX_NUMERIC The number
percentCalculationEnum INTEGER

* I = Indexable data field

Use in AppsWH
Module Brief description